/***************************************************
> Copyright (C) 2024 ==ASD== All rights reserved.
> File Name: name.c
> Author: asd
> Mail:3319941451@qq.com 
> Created Time: 2024年12月03日 星期二 10时24分51秒
***************************************************/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define MAX 10000

typedef struct IC
{
	float money;
	int integral;
	char activity[20];
}IC;

typedef struct user
{
	char id[10];
	char name[10];
	char password[20];
	struct IC thing;
	struct user *next;
}USER;

typedef struct
{
char name[100];
float price;
int quantity;
} Product;

// 购物清单链表节点
typedef struct Node 
{
Product product;
struct Node* next;
} Node;
// 日志级别的枚举类型
typedef enum {
    LOG_ERROR,    // 错误级别
    LOG_WARNING,  // 警告级别
    LOG_INFO,     // 信息级别
    LOG_DEBUG     // 调试级别
} LogLevel;

void displayMenu();
USER *creatuser(USER*head,int n);
USER *seekUSER(USER*head,int n);
USER *insertNewuser(USER*head);
USER *deleteUser(USER *head);
void loadUserFile();
void freeLink(USER *head);
